#include "Client.hpp"
#include <iostream>

int main()
{
    Client client;
    //打开管道
    client.OpenPipeForWrite();
    // std::cout << "Server" << std::endl;
    std::string message;
    while(true)
    {
        std::getline(std::cin,message);
        client.SendPipe(message);
    }
    std::cout << "client quit" << std::endl;
    client.ClosePipe();
    return 0;
}
